Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function ContainsKey ( _
key As TKey _
) As Boolean |
| C# |
|---|
public bool ContainsKey(
TKey key
) |
Return Value
true if the
ConcurrentDictionary<(Of <(TKey, TValue>)>) contains an element with
the specified key; otherwise, false.
Implements
IDictionary<(Of <(TKey, TValue>)>)..::.ContainsKey(TKey)
Exceptions
| Exception | Condition |
|---|
| System..::.ArgumentNullException | key is a null reference
(Nothing in Visual Basic). |
See Also